package com.healthtop.dao;

import com.healthtop.mapper.XsImgMapper;
import com.healthtop.model.XsImg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class XsImgDao {

    @Autowired
    private XsImgMapper xsImgMapper;

    public XsImg selectImgById(Long id) {
        return xsImgMapper.selectByPrimaryKey(id);
    }

    public void insert(XsImg xsImg) {
        xsImgMapper.insertSelective(xsImg);
    }
}
